package cn.vivi.seckill.vo;


import lombok.AllArgsConstructor;
import lombok.Getter;
import lombok.ToString;

@ToString
@AllArgsConstructor
@Getter
public enum RespBeanEnum {
    SUCCESS(200, "SUCCESS"),
    ERROR(500, "服务端异常"),

    LOGIN_ERROR_EMPTY(400, "用户名或密码不能为空"),
    PHONE_ERROR(400, "手机号码格式不正确"),

    PASSWORD_ERROR(400, "密码不正确"),

    USER_NO_LOGIN(400, "用户没有登陆"),

    PHONE_NO_EXIST(400, "电话号码不存在"),

    // 密码
    PASSWORD_UPDATE_SUCCESS(200, "密码更新成功"),
    PASSWORD_UPDATE_FAIL(400, "密码更新失败"),

    // 订单
    ORDER_NO_EXIST(400, "订单不存在"),
    // 排队中
    STAND_IN_LINE(8848, "排队中"),
    // 库存
    STOCK_NO_ENOUGH(400, "商品库存不足"),

    REPEAT_TO_SNAP_UP(400, "重复抢购"),

    // 消息
    SEND_MESSAGE_SUCCESS(400, "MQ消息发送成功"),
    // 路径
    PATH_ILLEGAL(400, "路径不合法"),

    ACCESS_LIMIT(400, "访问次数超出限制")
    ;

    private final Integer code;
    private final String message;
}
